.class public Lcom/htc/android/footprints/activity/DetailViewActivity;
.super Lcom/google/android/maps/MapActivity;
.source "DetailViewActivity.java"


# static fields
.field private static final DELETE_FOOTPRINT_DIALOG:I = 0x1

.field private static final FIRST_LAUNCH_DIALOG:I = 0x0

.field private static final HANDLE_AFTER_SWITCH:I = 0xf

.field private static final HANDLE_INIT_ALL_DATA:I = 0xc

.field private static final HANDLE_INIT_FIRST_DATA:I = 0xb

.field private static final HANDLE_INIT_FIRST_VIEW:I = 0xa

.field private static final HANDLE_PREPARE_DATA:I = 0xd

.field private static final HANDLE_RESET_SHOW_MSG:I = 0xe

.field private static final MENU_ALL_FOOTPRINTS:I = 0x0

.field private static final MENU_DELETE:I = 0x3

.field private static final MENU_EDIT:I = 0x2

.field private static final MENU_EXPORT:I = 0x4

.field private static final MENU_SAVE_AS_CONTACTS:I = 0x1

.field private static final REQUEST_EDIT:I = 0x21

.field private static final TAG:Ljava/lang/String; = "DetailViewActivity"


# instance fields
.field TE:J

.field TS:J

.field private USE_TRACEVIEW:Z

.field private categoryKey:Ljava/lang/String;

.field private dataList:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList",
            "<",
            "Lcom/htc/android/footprints/vo/Footprint;",
            ">;"
        }
    .end annotation
.end field

.field private dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

.field private firstView:Lcom/htc/android/footprints/view/DetailView;

.field private isFirst:Z

.field private isLanuchByWidget:Z

.field private lp:Landroid/widget/LinearLayout$LayoutParams;

.field private mAnimationLeftIn:Landroid/view/animation/Animation;

.field private mAnimationLeftOut:Landroid/view/animation/Animation;

.field private mAnimationRightIn:Landroid/view/animation/Animation;

.field private mAnimationRightOut:Landroid/view/animation/Animation;

.field private mBmp:Landroid/graphics/Bitmap;

.field private mFootprint:Lcom/htc/android/footprints/vo/Footprint;

.field mGesture:Lcom/htc/android/footprints/view/HorizontalScrollView$Gesture;

.field mHandler:Landroid/os/Handler;

.field private mIntent:Landroid/content/Intent;

.field private mItemIndex:I

.field private mMap:Lcom/google/android/maps/MapView;

.field private mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

.field private mTapMapViewButton:Landroid/widget/ImageButton;

.field private mViewSwitcher:Landroid/widget/ViewSwitcher;

.field mapButtonListener:Landroid/view/View$OnClickListener;

.field private nextBmp:Landroid/graphics/Bitmap;

.field private nextCategory:Lcom/htc/android/footprints/vo/Category;

.field private nextData:Lcom/htc/android/footprints/vo/Footprint;

.field private nextTextLat:Ljava/lang/String;

.field private nextTextLon:Ljava/lang/String;

.field private preBmp:Landroid/graphics/Bitmap;

.field private preCategory:Lcom/htc/android/footprints/vo/Category;

.field private preData:Lcom/htc/android/footprints/vo/Footprint;

.field private preTextLat:Ljava/lang/String;

.field private preTextLon:Ljava/lang/String;

.field private searchKey:Ljava/lang/String;

.field private secondView:Lcom/htc/android/footprints/view/DetailView;

.field private showingMsg:Z

.field private sortBy:Ljava/lang/String;

.field private switchLock:Z

.field viewFactory:Landroid/widget/ViewSwitcher$ViewFactory;


# direct methods
.method public constructor <init>()V
    .locals 4

    .prologue
    const/4 v1, 0x1

    const/4 v3, 0x0

    .line 56
    invoke-direct {p0}, Lcom/google/android/maps/MapActivity;-><init>()V

    .line 68
    const-string v0, "create_time desc"

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    .line 89
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->isFirst:Z

    .line 90
    iput-boolean v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->switchLock:Z

    .line 91
    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->showingMsg:Z

    .line 92
    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->isLanuchByWidget:Z

    .line 99
    new-instance v0, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v1, -0x1

    const/4 v2, -0x2

    invoke-direct {v0, v1, v2}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->lp:Landroid/widget/LinearLayout$LayoutParams;

    .line 103
    iput-boolean v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->USE_TRACEVIEW:Z

    .line 729
    new-instance v0, Lcom/htc/android/footprints/activity/DetailViewActivity$6;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$6;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mGesture:Lcom/htc/android/footprints/view/HorizontalScrollView$Gesture;

    .line 806
    new-instance v0, Lcom/htc/android/footprints/activity/DetailViewActivity$7;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$7;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->viewFactory:Landroid/widget/ViewSwitcher$ViewFactory;

    .line 842
    new-instance v0, Lcom/htc/android/footprints/activity/DetailViewActivity$8;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$8;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mapButtonListener:Landroid/view/View$OnClickListener;

    .line 872
    new-instance v0, Lcom/htc/android/footprints/activity/DetailViewActivity$9;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$9;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    return-void
.end method

.method static synthetic access$000(Lcom/htc/android/footprints/activity/DetailViewActivity;)Lcom/htc/android/footprints/vo/Footprint;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    return-object v0
.end method

.method static synthetic access$100(Lcom/htc/android/footprints/activity/DetailViewActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->searchKey:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$1000(Lcom/htc/android/footprints/activity/DetailViewActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->switchLock:Z

    return v0
.end method

.method static synthetic access$1002(Lcom/htc/android/footprints/activity/DetailViewActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->switchLock:Z

    return p1
.end method

.method static synthetic access$102(Lcom/htc/android/footprints/activity/DetailViewActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->searchKey:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$1100(Lcom/htc/android/footprints/activity/DetailViewActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->USE_TRACEVIEW:Z

    return v0
.end method

.method static synthetic access$1200(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->stopPlayback()V

    return-void
.end method

.method static synthetic access$1300(Lcom/htc/android/footprints/activity/DetailViewActivity;Z)V
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    invoke-direct {p0, p1}, Lcom/htc/android/footprints/activity/DetailViewActivity;->updateNextData(Z)V

    return-void
.end method

.method static synthetic access$1400(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/view/animation/Animation;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightIn:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$1500(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/widget/ViewSwitcher;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    return-object v0
.end method

.method static synthetic access$1600(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/view/animation/Animation;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftOut:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$1700(Lcom/htc/android/footprints/activity/DetailViewActivity;)Z
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-boolean v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->showingMsg:Z

    return v0
.end method

.method static synthetic access$1702(Lcom/htc/android/footprints/activity/DetailViewActivity;Z)Z
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-boolean p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->showingMsg:Z

    return p1
.end method

.method static synthetic access$1800(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/view/animation/Animation;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftIn:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$1900(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/view/animation/Animation;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightOut:Landroid/view/animation/Animation;

    return-object v0
.end method

.method static synthetic access$200(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/content/Intent;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mIntent:Landroid/content/Intent;

    return-object v0
.end method

.method static synthetic access$2000(Lcom/htc/android/footprints/activity/DetailViewActivity;)Landroid/widget/ImageButton;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    return-object v0
.end method

.method static synthetic access$2100(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->initFirstData()V

    return-void
.end method

.method static synthetic access$2200(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->initAllData()V

    return-void
.end method

.method static synthetic access$2300(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->removeSwitcherMap()V

    return-void
.end method

.method static synthetic access$2400(Lcom/htc/android/footprints/activity/DetailViewActivity;)Lcom/google/android/maps/MapView;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    return-object v0
.end method

.method static synthetic access$300(Lcom/htc/android/footprints/activity/DetailViewActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$302(Lcom/htc/android/footprints/activity/DetailViewActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$400(Lcom/htc/android/footprints/activity/DetailViewActivity;)I
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    return v0
.end method

.method static synthetic access$402(Lcom/htc/android/footprints/activity/DetailViewActivity;I)I
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    return p1
.end method

.method static synthetic access$408(Lcom/htc/android/footprints/activity/DetailViewActivity;)I
    .locals 2
    .parameter "x0"

    .prologue
    .line 56
    iget v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    add-int/lit8 v1, v0, 0x1

    iput v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    return v0
.end method

.method static synthetic access$410(Lcom/htc/android/footprints/activity/DetailViewActivity;)I
    .locals 2
    .parameter "x0"

    .prologue
    .line 56
    iget v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    const/4 v1, 0x1

    sub-int v1, v0, v1

    iput v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    return v0
.end method

.method static synthetic access$500(Lcom/htc/android/footprints/activity/DetailViewActivity;)Ljava/lang/String;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    return-object v0
.end method

.method static synthetic access$502(Lcom/htc/android/footprints/activity/DetailViewActivity;Ljava/lang/String;)Ljava/lang/String;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    return-object p1
.end method

.method static synthetic access$600(Lcom/htc/android/footprints/activity/DetailViewActivity;)Lcom/htc/android/footprints/provider/FootprintManager;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    return-object v0
.end method

.method static synthetic access$700(Lcom/htc/android/footprints/activity/DetailViewActivity;)Ljava/util/ArrayList;
    .locals 1
    .parameter "x0"

    .prologue
    .line 56
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    return-object v0
.end method

.method static synthetic access$702(Lcom/htc/android/footprints/activity/DetailViewActivity;Ljava/util/ArrayList;)Ljava/util/ArrayList;
    .locals 0
    .parameter "x0"
    .parameter "x1"

    .prologue
    .line 56
    iput-object p1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    return-object p1
.end method

.method static synthetic access$800(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->createAnimation()V

    return-void
.end method

.method static synthetic access$900(Lcom/htc/android/footprints/activity/DetailViewActivity;)V
    .locals 0
    .parameter "x0"

    .prologue
    .line 56
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->prepareData()V

    return-void
.end method

.method private checkSetting()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 447
    invoke-static {p0}, Lcom/htc/android/footprints/utils/SettingInfo;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/utils/SettingInfo;

    move-result-object v0

    .line 448
    .local v0, setting:Lcom/htc/android/footprints/utils/SettingInfo;
    invoke-virtual {v0}, Lcom/htc/android/footprints/utils/SettingInfo;->isFirstLaunch()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 449
    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DetailViewActivity;->showDialog(I)V

    .line 450
    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/utils/SettingInfo;->setFirstLaunch(Z)V

    .line 452
    :cond_0
    return-void
.end method

.method private createAnimation()V
    .locals 3

    .prologue
    .line 630
    const v0, 0x3fe66666

    .line 631
    .local v0, interpolator:F
    const v1, 0x7f040010

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightIn:Landroid/view/animation/Animation;

    .line 632
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightIn:Landroid/view/animation/Animation;

    new-instance v2, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v2, v0}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 633
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightIn:Landroid/view/animation/Animation;

    new-instance v2, Lcom/htc/android/footprints/activity/DetailViewActivity$4;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$4;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 649
    const v1, 0x7f04000e

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftIn:Landroid/view/animation/Animation;

    .line 650
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftIn:Landroid/view/animation/Animation;

    new-instance v2, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v2, v0}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 651
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftIn:Landroid/view/animation/Animation;

    new-instance v2, Lcom/htc/android/footprints/activity/DetailViewActivity$5;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$5;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setAnimationListener(Landroid/view/animation/Animation$AnimationListener;)V

    .line 667
    const v1, 0x7f04000f

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftOut:Landroid/view/animation/Animation;

    .line 668
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationLeftOut:Landroid/view/animation/Animation;

    new-instance v2, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v2, v0}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 669
    const v1, 0x7f040011

    invoke-static {p0, v1}, Landroid/view/animation/AnimationUtils;->loadAnimation(Landroid/content/Context;I)Landroid/view/animation/Animation;

    move-result-object v1

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightOut:Landroid/view/animation/Animation;

    .line 670
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mAnimationRightOut:Landroid/view/animation/Animation;

    new-instance v2, Landroid/view/animation/DecelerateInterpolator;

    invoke-direct {v2, v0}, Landroid/view/animation/DecelerateInterpolator;-><init>(F)V

    invoke-virtual {v1, v2}, Landroid/view/animation/Animation;->setInterpolator(Landroid/view/animation/Interpolator;)V

    .line 671
    return-void
.end method

.method private initAllData()V
    .locals 6

    .prologue
    const-string v5, "DetailViewActivity"

    .line 328
    const-string v3, "DetailViewActivity"

    const-string v3, "initData"

    invoke-static {v5, v3}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 330
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 331
    .local v0, T6:J
    const-string v3, "DetailViewActivity"

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "T6 = "

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-static {v5, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 333
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v3

    iput-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    .line 335
    new-instance v2, Ljava/lang/Thread;

    new-instance v3, Lcom/htc/android/footprints/activity/DetailViewActivity$2;

    invoke-direct {v3, p0, v0, v1}, Lcom/htc/android/footprints/activity/DetailViewActivity$2;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;J)V

    invoke-direct {v2, v3}, Ljava/lang/Thread;-><init>(Ljava/lang/Runnable;)V

    .line 418
    .local v2, thread:Ljava/lang/Thread;
    invoke-virtual {v2}, Ljava/lang/Thread;->start()V

    .line 420
    new-instance v3, Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v4

    invoke-direct {v3, v4}, Lcom/htc/android/footprints/utils/StorageUtil;-><init>(Landroid/content/Context;)V

    iput-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 421
    iget-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    new-instance v4, Lcom/htc/android/footprints/activity/DetailViewActivity$3;

    invoke-direct {v4, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$3;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/utils/StorageUtil;->SetOnChangeStorageListerner(Lcom/htc/android/footprints/utils/StorageUtil$OnChangeStorageListener;)V

    .line 429
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->checkSetting()V

    .line 430
    return-void
.end method

.method private initFirstData()V
    .locals 4

    .prologue
    .line 308
    const-string v0, "DetailViewActivity"

    const-string v1, "initFirstData"

    invoke-static {v0, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 309
    new-instance v0, Lcom/google/android/maps/MapView;

    const-string v1, "0ypVfVYlpVnaOTgZc5qugACY0NfEh84HL35r6Wg"

    invoke-direct {v0, p0, v1}, Lcom/google/android/maps/MapView;-><init>(Landroid/content/Context;Ljava/lang/String;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    .line 314
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->createMapButton()V

    .line 315
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setMapButton(Landroid/widget/ImageButton;)V

    .line 316
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->updateViewAfterSwitch(Lcom/google/android/maps/MapView;)V

    .line 319
    new-instance v0, Lcom/htc/android/footprints/view/DetailView;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/view/DetailView;-><init>(Landroid/content/Context;)V

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->secondView:Lcom/htc/android/footprints/view/DetailView;

    .line 321
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->secondView:Lcom/htc/android/footprints/view/DetailView;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setMapButton(Landroid/widget/ImageButton;)V

    .line 322
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->secondView:Lcom/htc/android/footprints/view/DetailView;

    const/4 v2, 0x1

    iget-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->lp:Landroid/widget/LinearLayout$LayoutParams;

    invoke-virtual {v0, v1, v2, v3}, Landroid/widget/ViewSwitcher;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 324
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->initAllData()V

    .line 325
    return-void
.end method

.method private initFirstView()V
    .locals 20

    .prologue
    .line 268
    const-string v3, "DetailViewActivity"

    const-string v4, "initFirstView"

    invoke-static {v3, v4}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 270
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v9

    .line 271
    .local v9, T4:J
    const-string v3, "DetailViewActivity"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "T4 = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v9, v10}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 273
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v16

    .line 274
    .local v16, cs:J
    new-instance v3, Lcom/htc/android/footprints/view/DetailView;

    move-object v0, v3

    move-object/from16 v1, p0

    invoke-direct {v0, v1}, Lcom/htc/android/footprints/view/DetailView;-><init>(Landroid/content/Context;)V

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    .line 275
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v14

    .line 276
    .local v14, ce:J
    const-string v3, "DetailViewActivity"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "create view = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    sub-long v5, v14, v16

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 278
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    move-object v3, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v4, v0

    const/4 v5, 0x0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->lp:Landroid/widget/LinearLayout$LayoutParams;

    move-object v6, v0

    invoke-virtual {v3, v4, v5, v6}, Landroid/widget/ViewSwitcher;->addView(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V

    .line 280
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mIntent:Landroid/content/Intent;

    move-object v3, v0

    const-string v4, "DATA"

    invoke-virtual {v3, v4}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v3

    check-cast v3, Lcom/htc/android/footprints/vo/Footprint;

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 282
    const/4 v4, 0x0

    .line 283
    .local v4, imageFile:Ljava/io/File;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v3, v0

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v3, :cond_0

    .line 284
    new-instance v4, Ljava/io/File;

    .end local v4           #imageFile:Ljava/io/File;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v3, v0

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v4, v3}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 287
    .restart local v4       #imageFile:Ljava/io/File;
    :cond_0
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v3

    const/16 v6, 0x78

    const/16 v7, 0x78

    const/4 v8, 0x0

    move-object/from16 v5, p0

    invoke-virtual/range {v3 .. v8}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v3

    move-object v0, v3

    move-object/from16 v1, p0

    iput-object v0, v1, Lcom/htc/android/footprints/activity/DetailViewActivity;->mBmp:Landroid/graphics/Bitmap;

    .line 288
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v3, v0

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v3}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v18

    .line 289
    .local v18, lat:Ljava/lang/String;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v3, v0

    iget v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v3}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v19

    .line 290
    .local v19, lon:Ljava/lang/String;
    invoke-static/range {p0 .. p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v3

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v4, v0

    .end local v4           #imageFile:Ljava/io/File;
    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v13

    .line 293
    .local v13, category:Lcom/htc/android/footprints/vo/Category;
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v3, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    move-object v4, v0

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/view/DetailView;->setFootprint(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 294
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v3, v0

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mBmp:Landroid/graphics/Bitmap;

    move-object v4, v0

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/view/DetailView;->setPicture(Landroid/graphics/Bitmap;)V

    .line 295
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v3, v0

    move-object v0, v3

    move-object/from16 v1, v18

    move-object/from16 v2, v19

    invoke-virtual {v0, v1, v2}, Lcom/htc/android/footprints/view/DetailView;->setLocationString(Ljava/lang/String;Ljava/lang/String;)V

    .line 296
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v3, v0

    invoke-virtual {v3, v13}, Lcom/htc/android/footprints/view/DetailView;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 297
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->firstView:Lcom/htc/android/footprints/view/DetailView;

    move-object v3, v0

    invoke-virtual {v3}, Lcom/htc/android/footprints/view/DetailView;->updateViewBeforeSwitch()V

    .line 299
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v11

    .line 300
    .local v11, T5:J
    const-string v3, "DetailViewActivity"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "T5 = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4, v11, v12}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 301
    const-string v3, "DetailViewActivity"

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const-string v5, "T5-T4 = "

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v4

    sub-long v5, v11, v9

    invoke-virtual {v4, v5, v6}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v4

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 304
    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    move-object v3, v0

    const/16 v4, 0xb

    const-wide/16 v5, 0x1f4

    invoke-virtual {v3, v4, v5, v6}, Landroid/os/Handler;->sendEmptyMessageDelayed(IJ)Z

    .line 305
    return-void
.end method

.method private prepareData()V
    .locals 7

    .prologue
    const/4 v6, 0x1

    const/4 v5, 0x0

    const/16 v3, 0x78

    .line 674
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    if-nez v0, :cond_0

    .line 675
    const-string v0, "DetailViewActivity"

    const-string v2, "prepareData, dataList = null !"

    invoke-static {v0, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 705
    :goto_0
    return-void

    .line 679
    :cond_0
    const/4 v1, 0x0

    .line 680
    .local v1, file:Ljava/io/File;
    iget v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    add-int/lit8 v0, v0, 0x1

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v0, v2, :cond_2

    .line 681
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    iget v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    add-int/lit8 v2, v2, 0x1

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    .line 683
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_1

    .line 684
    new-instance v1, Ljava/io/File;

    .end local v1           #file:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 685
    .restart local v1       #file:Ljava/io/File;
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    move-object v2, p0

    move v4, v3

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextBmp:Landroid/graphics/Bitmap;

    .line 687
    :cond_1
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextCategory:Lcom/htc/android/footprints/vo/Category;

    .line 688
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextTextLat:Ljava/lang/String;

    .line 689
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextTextLon:Ljava/lang/String;

    .line 692
    :cond_2
    iget v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    sub-int/2addr v0, v6

    if-ltz v0, :cond_4

    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_4

    .line 693
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    iget v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    sub-int/2addr v2, v6

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    .line 695
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_3

    .line 696
    new-instance v1, Ljava/io/File;

    .end local v1           #file:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 697
    .restart local v1       #file:Ljava/io/File;
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    move-object v2, p0

    move v4, v3

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preBmp:Landroid/graphics/Bitmap;

    .line 699
    :cond_3
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preCategory:Lcom/htc/android/footprints/vo/Category;

    .line 700
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preTextLat:Ljava/lang/String;

    .line 701
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preTextLon:Ljava/lang/String;

    .line 704
    :cond_4
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->resetSwitchLock()V

    goto/16 :goto_0
.end method

.method private reloadData()V
    .locals 11

    .prologue
    const-string v10, "DetailViewActivity"

    .line 455
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->searchKey:Ljava/lang/String;

    if-eqz v6, :cond_2

    .line 456
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    iget-object v8, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->searchKey:Ljava/lang/String;

    iget-object v9, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    invoke-virtual {v6, v7, v8, v9}, Lcom/htc/android/footprints/provider/FootprintManager;->getCursorSortBy(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v1

    .line 458
    .local v1, cursor:Landroid/database/Cursor;
    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v6

    if-lez v6, :cond_0

    .line 459
    new-instance v6, Ljava/util/ArrayList;

    invoke-interface {v1}, Landroid/database/Cursor;->getCount()I

    move-result v7

    invoke-direct {v6, v7}, Ljava/util/ArrayList;-><init>(I)V

    iput-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    .line 460
    :goto_0
    invoke-interface {v1}, Landroid/database/Cursor;->moveToNext()Z

    move-result v6

    if-eqz v6, :cond_0

    .line 461
    new-instance v3, Lcom/htc/android/footprints/vo/Footprint;

    invoke-direct {v3}, Lcom/htc/android/footprints/vo/Footprint;-><init>()V

    .line 462
    .local v3, footprint:Lcom/htc/android/footprints/vo/Footprint;
    invoke-static {v3, v1}, Lcom/htc/android/footprints/provider/FootprintManager;->fillDataFromCursor(Lcom/htc/android/footprints/vo/Footprint;Landroid/database/Cursor;)V

    .line 463
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6, v3}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 467
    .end local v3           #footprint:Lcom/htc/android/footprints/vo/Footprint;
    :cond_0
    invoke-interface {v1}, Landroid/database/Cursor;->close()V

    .line 469
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    if-nez v6, :cond_1

    .line 470
    const-string v6, "DetailViewActivity"

    const-string v6, "initData, dataList = null !"

    invoke-static {v10, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 511
    .end local v1           #cursor:Landroid/database/Cursor;
    :cond_1
    :goto_1
    return-void

    .line 474
    :cond_2
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    invoke-virtual {v6, v7}, Lcom/htc/android/footprints/provider/FootprintManager;->getFootprintAll(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    .line 476
    .local v0, allData:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    .line 477
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    if-eqz v6, :cond_3

    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v6

    if-nez v6, :cond_6

    .line 479
    :cond_3
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6, v0}, Ljava/util/ArrayList;->addAll(Ljava/util/Collection;)Z

    .line 490
    :cond_4
    const-string v6, "DetailViewActivity"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "List Size = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v7}, Ljava/util/ArrayList;->size()I

    move-result v7

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v10, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 491
    const-string v6, "DetailViewActivity"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "mItemIndex = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v10, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 492
    const-string v6, "DetailViewActivity"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "mFootprint name = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v7, v7, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v10, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 496
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    if-eqz v6, :cond_9

    iget v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    if-gez v6, :cond_9

    .line 497
    const/4 v4, 0x0

    .local v4, i:I
    :goto_2
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-ge v4, v6, :cond_8

    .line 498
    const-string v6, "DetailViewActivity"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "id/name = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6, v4}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    const-string v7, "/"

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/htc/android/footprints/vo/Footprint;

    iget-object v6, v6, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v7, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v10, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 500
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6, v4}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/htc/android/footprints/vo/Footprint;

    iget-object v6, v6, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v7, v7, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_5

    .line 501
    iput v4, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    .line 497
    :cond_5
    add-int/lit8 v4, v4, 0x1

    goto :goto_2

    .line 483
    .end local v4           #i:I
    :cond_6
    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v5

    .local v5, i$:Ljava/util/Iterator;
    :cond_7
    :goto_3
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_4

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/htc/android/footprints/vo/Footprint;

    .line 484
    .local v2, f:Lcom/htc/android/footprints/vo/Footprint;
    iget-object v6, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_7

    .line 485
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_3

    .line 504
    .end local v2           #f:Lcom/htc/android/footprints/vo/Footprint;
    .end local v5           #i$:Ljava/util/Iterator;
    .restart local v4       #i:I
    :cond_8
    const-string v6, "DetailViewActivity"

    new-instance v6, Ljava/lang/StringBuilder;

    invoke-direct {v6}, Ljava/lang/StringBuilder;-><init>()V

    const-string v7, "after loop, mItemIndex = "

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v6

    iget v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    invoke-virtual {v6, v7}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v6

    invoke-virtual {v6}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    invoke-static {v10, v6}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 507
    .end local v4           #i:I
    :cond_9
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v6}, Ljava/util/ArrayList;->size()I

    move-result v6

    if-gtz v6, :cond_1

    .line 508
    const-string v6, "DetailViewActivity"

    const-string v6, "initData, dataList size = 0 !"

    invoke-static {v10, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto/16 :goto_1
.end method

.method private removeQueuedMessages()V
    .locals 2

    .prologue
    .line 858
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xa

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 859
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xb

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 860
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xc

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 861
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xd

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 862
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xe

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 863
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mHandler:Landroid/os/Handler;

    const/16 v1, 0xf

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeMessages(I)V

    .line 864
    return-void
.end method

.method private removeSwitcherMap()V
    .locals 2

    .prologue
    .line 615
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v1}, Landroid/widget/ViewSwitcher;->getCurrentView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/view/DetailView;

    .line 616
    .local v0, aView:Lcom/htc/android/footprints/view/DetailView;
    if-eqz v0, :cond_0

    .line 617
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->removeMap(Lcom/google/android/maps/MapView;)V

    .line 619
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v1}, Landroid/widget/ViewSwitcher;->getNextView()Landroid/view/View;

    move-result-object v0

    .end local v0           #aView:Lcom/htc/android/footprints/view/DetailView;
    check-cast v0, Lcom/htc/android/footprints/view/DetailView;

    .line 620
    .restart local v0       #aView:Lcom/htc/android/footprints/view/DetailView;
    if-eqz v0, :cond_1

    .line 621
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->removeMap(Lcom/google/android/maps/MapView;)V

    .line 623
    :cond_1
    return-void
.end method

.method private resetSwitchLock()V
    .locals 1

    .prologue
    .line 626
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->switchLock:Z

    .line 627
    return-void
.end method

.method private stopPlayback()V
    .locals 1

    .prologue
    .line 611
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v0}, Landroid/widget/ViewSwitcher;->getCurrentView()Landroid/view/View;

    move-result-object p0

    .end local p0
    check-cast p0, Lcom/htc/android/footprints/view/DetailView;

    invoke-virtual {p0}, Lcom/htc/android/footprints/view/DetailView;->closeMediaControl()V

    .line 612
    return-void
.end method

.method private updateNextData(Z)V
    .locals 3
    .parameter "isUp"

    .prologue
    .line 709
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v1}, Landroid/widget/ViewSwitcher;->getNextView()Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/view/DetailView;

    .line 711
    .local v0, v:Lcom/htc/android/footprints/view/DetailView;
    if-eqz p1, :cond_0

    .line 712
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 713
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preData:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setFootprint(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 714
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preBmp:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setPicture(Landroid/graphics/Bitmap;)V

    .line 715
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 716
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preTextLat:Ljava/lang/String;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->preTextLon:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/htc/android/footprints/view/DetailView;->setLocationString(Ljava/lang/String;Ljava/lang/String;)V

    .line 726
    :goto_0
    invoke-virtual {v0}, Lcom/htc/android/footprints/view/DetailView;->updateViewBeforeSwitch()V

    .line 727
    return-void

    .line 719
    :cond_0
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 720
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextData:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setFootprint(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 721
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextBmp:Landroid/graphics/Bitmap;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setPicture(Landroid/graphics/Bitmap;)V

    .line 722
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextCategory:Lcom/htc/android/footprints/vo/Category;

    invoke-virtual {v0, v1}, Lcom/htc/android/footprints/view/DetailView;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 723
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextTextLat:Ljava/lang/String;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->nextTextLon:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Lcom/htc/android/footprints/view/DetailView;->setLocationString(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method


# virtual methods
.method public createMapButton()V
    .locals 3

    .prologue
    .line 433
    const-string v1, "layout_inflater"

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getSystemService(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Landroid/view/LayoutInflater;

    .line 436
    .local v0, inflater:Landroid/view/LayoutInflater;
    const v1, 0x7f030004

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/ImageButton;

    iput-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    .line 439
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    const v2, 0x7f020026

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setBackgroundResource(I)V

    .line 440
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    const v2, 0x7f0200aa

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setImageResource(I)V

    .line 441
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    sget-object v2, Landroid/widget/ImageView$ScaleType;->CENTER_INSIDE:Landroid/widget/ImageView$ScaleType;

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setScaleType(Landroid/widget/ImageView$ScaleType;)V

    .line 442
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    const/4 v2, 0x1

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setClickable(Z)V

    .line 443
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mTapMapViewButton:Landroid/widget/ImageButton;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mapButtonListener:Landroid/view/View$OnClickListener;

    invoke-virtual {v1, v2}, Landroid/widget/ImageButton;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 444
    return-void
.end method

.method protected isRouteDisplayed()Z
    .locals 1

    .prologue
    .line 208
    const/4 v0, 0x0

    return v0
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 11
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    const/16 v3, 0x78

    const/4 v5, 0x0

    const-string v2, "DATA"

    .line 573
    if-nez p3, :cond_1

    .line 574
    const-string v0, "DetailViewActivity"

    const-string v2, "onActivityResult. intent data is null"

    invoke-static {v0, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 608
    :cond_0
    :goto_0
    return-void

    .line 578
    :cond_1
    const/16 v0, 0x21

    if-ne p1, v0, :cond_0

    .line 579
    const-string v0, "EXTRA_DELETE_FROM_EDIT"

    invoke-virtual {p3, v0, v5}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 580
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->finish()V

    .line 583
    :cond_2
    const-string v0, "DATA"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    if-eqz v0, :cond_4

    .line 584
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->removeSwitcherMap()V

    .line 585
    const-string v0, "DATA"

    invoke-virtual {p3, v2}, Landroid/content/Intent;->getParcelableExtra(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iput-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    .line 587
    const/4 v1, 0x0

    .line 588
    .local v1, imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    if-eqz v0, :cond_3

    .line 589
    new-instance v1, Ljava/io/File;

    .end local v1           #imageFile:Ljava/io/File;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mPicPath:Ljava/lang/String;

    invoke-direct {v1, v0}, Ljava/io/File;-><init>(Ljava/lang/String;)V

    .line 591
    .restart local v1       #imageFile:Ljava/io/File;
    :cond_3
    invoke-static {}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getInstance()Lcom/htc/android/footprints/utils/camera/FootprintImageManager;

    move-result-object v0

    move-object v2, p0

    move v4, v3

    invoke-virtual/range {v0 .. v5}, Lcom/htc/android/footprints/utils/camera/FootprintImageManager;->getScaledImage(Ljava/io/File;Landroid/content/Context;IIZ)Landroid/graphics/Bitmap;

    move-result-object v8

    .line 592
    .local v8, bmp:Landroid/graphics/Bitmap;
    invoke-static {p0}, Lcom/htc/android/footprints/provider/FootprintManager;->getInstance(Landroid/content/Context;)Lcom/htc/android/footprints/provider/FootprintManager;

    move-result-object v0

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, v2, Lcom/htc/android/footprints/vo/Footprint;->mCategory:Ljava/lang/String;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/provider/FootprintManager;->findCategory(Ljava/lang/String;)Lcom/htc/android/footprints/vo/Category;

    move-result-object v9

    .line 593
    .local v9, catgory:Lcom/htc/android/footprints/vo/Category;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLatitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLat(I)Ljava/lang/String;

    move-result-object v6

    .line 594
    .local v6, TextLat:Ljava/lang/String;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget v0, v0, Lcom/htc/android/footprints/vo/Footprint;->mLongitude:I

    invoke-static {v0}, Lcom/htc/android/footprints/utils/FootprintUtils;->getFormatedLon(I)Ljava/lang/String;

    move-result-object v7

    .line 596
    .local v7, TextLon:Ljava/lang/String;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v0}, Landroid/widget/ViewSwitcher;->getCurrentView()Landroid/view/View;

    move-result-object v10

    check-cast v10, Lcom/htc/android/footprints/view/DetailView;

    .line 597
    .local v10, v:Lcom/htc/android/footprints/view/DetailView;
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v10, v0}, Lcom/htc/android/footprints/view/DetailView;->setFootprint(Lcom/htc/android/footprints/vo/Footprint;)V

    .line 598
    invoke-virtual {v10, v8}, Lcom/htc/android/footprints/view/DetailView;->setPicture(Landroid/graphics/Bitmap;)V

    .line 599
    invoke-virtual {v10, v9}, Lcom/htc/android/footprints/view/DetailView;->setCategory(Lcom/htc/android/footprints/vo/Category;)V

    .line 600
    invoke-virtual {v10, v6, v7}, Lcom/htc/android/footprints/view/DetailView;->setLocationString(Ljava/lang/String;Ljava/lang/String;)V

    .line 601
    invoke-virtual {v10}, Lcom/htc/android/footprints/view/DetailView;->updateViewBeforeSwitch()V

    .line 602
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mMap:Lcom/google/android/maps/MapView;

    invoke-virtual {v10, v0}, Lcom/htc/android/footprints/view/DetailView;->updateViewAfterSwitch(Lcom/google/android/maps/MapView;)V

    .line 605
    .end local v1           #imageFile:Ljava/io/File;
    .end local v6           #TextLat:Ljava/lang/String;
    .end local v7           #TextLon:Ljava/lang/String;
    .end local v8           #bmp:Landroid/graphics/Bitmap;
    .end local v9           #catgory:Lcom/htc/android/footprints/vo/Category;
    .end local v10           #v:Lcom/htc/android/footprints/view/DetailView;
    :cond_4
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    iget v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mItemIndex:I

    invoke-virtual {v0, v2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/htc/android/footprints/vo/Footprint;

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-virtual {v0, v2}, Lcom/htc/android/footprints/vo/Footprint;->copyFrom(Lcom/htc/android/footprints/vo/Footprint;)V

    goto/16 :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const-string v5, "DetailViewActivity"

    .line 109
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreate(Landroid/os/Bundle;)V

    .line 110
    const-string v2, "DetailViewActivity"

    const-string v2, "onCreate"

    invoke-static {v5, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 112
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v2

    iput-wide v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TS:J

    .line 113
    const-string v2, "DetailViewActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "TS = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-wide v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TS:J

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v5, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 115
    iget-boolean v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->USE_TRACEVIEW:Z

    if-eqz v2, :cond_0

    .line 116
    const-string v2, "/system/tmp/create_view"

    invoke-static {v2}, Landroid/os/Debug;->startMethodTracing(Ljava/lang/String;)V

    .line 119
    :cond_0
    const/4 v2, 0x1

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DetailViewActivity;->requestWindowFeature(I)Z

    .line 120
    const v2, 0x7f03000a

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DetailViewActivity;->setContentView(I)V

    .line 121
    const/4 v2, 0x3

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DetailViewActivity;->setVolumeControlStream(I)V

    .line 123
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getIntent()Landroid/content/Intent;

    move-result-object v2

    iput-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mIntent:Landroid/content/Intent;

    .line 124
    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mIntent:Landroid/content/Intent;

    const-string v3, "LAUNCH_BY_WIDGET"

    const/4 v4, 0x0

    invoke-virtual {v2, v3, v4}, Landroid/content/Intent;->getBooleanExtra(Ljava/lang/String;Z)Z

    move-result v2

    iput-boolean v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->isLanuchByWidget:Z

    .line 126
    const v2, 0x7f0c004b

    invoke-virtual {p0, v2}, Lcom/htc/android/footprints/activity/DetailViewActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/ViewSwitcher;

    iput-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    .line 130
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    .line 131
    .local v0, TC:J
    const-string v2, "DetailViewActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "TC = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v5, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 132
    const-string v2, "DetailViewActivity"

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "create time = "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    iget-wide v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TS:J

    sub-long v3, v0, v3

    invoke-virtual {v2, v3, v4}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v5, v2}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 135
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->initFirstView()V

    .line 136
    return-void
.end method

.method protected onCreateDialog(I)Landroid/app/Dialog;
    .locals 5
    .parameter "id"

    .prologue
    const/4 v2, 0x1

    .line 247
    if-nez p1, :cond_0

    .line 248
    new-instance v0, Lcom/htc/android/footprints/commonui/HtcDialog;

    invoke-direct {v0, p0}, Lcom/htc/android/footprints/commonui/HtcDialog;-><init>(Landroid/content/Context;)V

    invoke-virtual {v0}, Lcom/htc/android/footprints/commonui/HtcDialog;->getWarningDialog()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v0

    .line 263
    :goto_0
    return-object v0

    .line 249
    :cond_0
    if-ne p1, v2, :cond_1

    .line 250
    new-instance v0, Lcom/htc/widget/HtcAlertDialog$Builder;

    invoke-direct {v0, p0}, Lcom/htc/widget/HtcAlertDialog$Builder;-><init>(Landroid/content/Context;)V

    const v1, 0x7f0a00a5

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->setTitle(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v0

    const v1, 0x1080027

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->setIcon(I)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f0a0018

    invoke-virtual {p0, v1}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v1

    new-array v2, v2, [Ljava/lang/Object;

    const/4 v3, 0x0

    iget-object v4, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    aput-object v4, v2, v3

    invoke-static {v1, v2}, Ljava/lang/String;->format(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/htc/widget/HtcAlertDialog$Builder;->setMessage(Ljava/lang/CharSequence;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f0a0065

    new-instance v2, Lcom/htc/android/footprints/activity/DetailViewActivity$1;

    invoke-direct {v2, p0}, Lcom/htc/android/footprints/activity/DetailViewActivity$1;-><init>(Lcom/htc/android/footprints/activity/DetailViewActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setPositiveButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v0

    const v1, 0x7f0a0004

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Lcom/htc/widget/HtcAlertDialog$Builder;->setNegativeButton(ILandroid/content/DialogInterface$OnClickListener;)Lcom/htc/widget/HtcAlertDialog$Builder;

    move-result-object v0

    invoke-virtual {v0}, Lcom/htc/widget/HtcAlertDialog$Builder;->create()Lcom/htc/widget/HtcAlertDialog;

    move-result-object v0

    goto :goto_0

    .line 263
    :cond_1
    invoke-super {p0, p1}, Lcom/google/android/maps/MapActivity;->onCreateDialog(I)Landroid/app/Dialog;

    move-result-object v0

    goto :goto_0
.end method

.method public onCreateOptionsMenu(Landroid/view/Menu;)Z
    .locals 7
    .parameter "menu"

    .prologue
    const/4 v6, 0x4

    const/4 v5, 0x3

    const/4 v4, 0x2

    const/4 v3, 0x1

    const/4 v2, 0x0

    .line 521
    const v0, 0x7f0a0059

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v2, v2, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 524
    const v0, 0x7f0a0021

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v6, v6, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200b0

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 527
    const v0, 0x7f0a000f

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v4, v4, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200af

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 530
    const v0, 0x7f0a0010

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v5, v5, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200ae

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 533
    const v0, 0x7f0a00b4

    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getString(I)Ljava/lang/String;

    move-result-object v0

    invoke-interface {p1, v2, v3, v3, v0}, Landroid/view/Menu;->add(IIILjava/lang/CharSequence;)Landroid/view/MenuItem;

    move-result-object v0

    const v1, 0x7f0200e3

    invoke-interface {v0, v1}, Landroid/view/MenuItem;->setIcon(I)Landroid/view/MenuItem;

    .line 537
    return v3
.end method

.method protected onDestroy()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    .line 192
    const-string v0, "DetailViewActivity"

    const-string v1, "onDestroy"

    invoke-static {v0, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 195
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->removeQueuedMessages()V

    .line 197
    iput-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    .line 198
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    if-eqz v0, :cond_0

    .line 199
    iget-object v0, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->clear()V

    .line 200
    iput-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dataList:Ljava/util/ArrayList;

    .line 202
    :cond_0
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onDestroy()V

    .line 203
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 3
    .parameter "keyCode"
    .parameter "event"

    .prologue
    .line 213
    const/16 v1, 0x54

    if-ne p1, v1, :cond_0

    .line 214
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/SearchActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 215
    .local v0, intent:Landroid/content/Intent;
    const-string v1, "EXTRA_CATEGORY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->categoryKey:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 216
    const-string v1, "EXTRA_SEARCH_INPUT"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->searchKey:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 217
    const-string v1, "EXTRA_SORT_BY"

    iget-object v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->sortBy:Ljava/lang/String;

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 218
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 219
    const/4 v1, 0x1

    .line 221
    .end local v0           #intent:Landroid/content/Intent;
    :goto_0
    return v1

    :cond_0
    invoke-super {p0, p1, p2}, Lcom/google/android/maps/MapActivity;->onKeyDown(ILandroid/view/KeyEvent;)Z

    move-result v1

    goto :goto_0
.end method

.method public onOptionsItemSelected(Landroid/view/MenuItem;)Z
    .locals 10
    .parameter "item"

    .prologue
    const/4 v9, 0x0

    const/4 v7, 0x1

    .line 542
    invoke-interface {p1}, Landroid/view/MenuItem;->getItemId()I

    move-result v4

    .line 543
    .local v4, id:I
    if-nez v4, :cond_1

    .line 544
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->getResetIntent()Landroid/content/Intent;

    move-result-object v3

    .line 545
    .local v3, i:Landroid/content/Intent;
    invoke-virtual {p0, v3}, Lcom/htc/android/footprints/activity/DetailViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 568
    .end local v3           #i:Landroid/content/Intent;
    :cond_0
    :goto_0
    return v9

    .line 546
    :cond_1
    const/4 v6, 0x2

    if-ne v4, v6, :cond_2

    .line 547
    new-instance v5, Landroid/content/Intent;

    const-string v6, "com.htc.android.footprints.activity.FootprintDetailEditActivity"

    invoke-direct {v5, v6}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 549
    .local v5, intent:Landroid/content/Intent;
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mViewSwitcher:Landroid/widget/ViewSwitcher;

    invoke-virtual {v6}, Landroid/widget/ViewSwitcher;->getCurrentView()Landroid/view/View;

    move-result-object v6

    check-cast v6, Lcom/htc/android/footprints/view/DetailView;

    invoke-virtual {v6}, Lcom/htc/android/footprints/view/DetailView;->getFootprint()Lcom/htc/android/footprints/vo/Footprint;

    move-result-object v0

    .line 551
    .local v0, data:Lcom/htc/android/footprints/vo/Footprint;
    :try_start_0
    const-string v6, "DATA"

    invoke-virtual {v5, v6, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Parcelable;)Landroid/content/Intent;

    .line 553
    const/16 v6, 0x21

    invoke-virtual {p0, v5, v6}, Lcom/htc/android/footprints/activity/DetailViewActivity;->startActivityForResult(Landroid/content/Intent;I)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 555
    :catch_0
    move-exception v6

    move-object v1, v6

    .line 556
    .local v1, ex:Ljava/lang/Exception;
    const-string v6, "DetailViewActivity"

    const-string v7, "Disable to launch edit mode"

    invoke-static {v6, v7}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    goto :goto_0

    .line 558
    .end local v0           #data:Lcom/htc/android/footprints/vo/Footprint;
    .end local v1           #ex:Ljava/lang/Exception;
    .end local v5           #intent:Landroid/content/Intent;
    :cond_2
    const/4 v6, 0x3

    if-ne v4, v6, :cond_3

    .line 559
    invoke-virtual {p0, v7}, Lcom/htc/android/footprints/activity/DetailViewActivity;->showDialog(I)V

    goto :goto_0

    .line 560
    :cond_3
    const/4 v6, 0x4

    if-ne v4, v6, :cond_4

    .line 561
    new-array v2, v7, [Lcom/htc/android/footprints/vo/Footprint;

    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    aput-object v6, v2, v9

    .line 562
    .local v2, footprints:[Lcom/htc/android/footprints/vo/Footprint;
    iget-object v6, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v6, v6, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    const-string v7, " "

    const-string v8, "_"

    invoke-virtual {v6, v7, v8}, Ljava/lang/String;->replace(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;

    move-result-object v6

    invoke-static {p0, v6, v2}, Lcom/htc/android/footprints/utils/FootprintUtils;->exportKMZ(Landroid/app/Activity;Ljava/lang/String;[Lcom/htc/android/footprints/vo/Footprint;)V

    goto :goto_0

    .line 564
    .end local v2           #footprints:[Lcom/htc/android/footprints/vo/Footprint;
    :cond_4
    if-ne v4, v7, :cond_0

    .line 565
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    iget-object v7, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    invoke-static {v6, v7}, Lcom/htc/android/footprints/utils/FootprintUtils;->saveAsContacts(Landroid/content/Context;Lcom/htc/android/footprints/vo/Footprint;)V

    goto :goto_0
.end method

.method protected onPause()V
    .locals 5

    .prologue
    .line 168
    const-string v3, "DetailViewActivity"

    const-string v4, "onPause"

    invoke-static {v3, v4}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 169
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onPause()V

    .line 170
    iget-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v3, :cond_0

    .line 171
    iget-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v3}, Lcom/htc/android/footprints/utils/StorageUtil;->closeStorgaeUtil()V

    .line 174
    :cond_0
    invoke-direct {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->stopPlayback()V

    .line 176
    const/4 v1, 0x0

    .line 177
    .local v1, index:I
    iget-boolean v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->isLanuchByWidget:Z

    if-eqz v3, :cond_2

    .line 178
    iget-object v3, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->dbManager:Lcom/htc/android/footprints/provider/FootprintManager;

    const-string v4, "create_time desc"

    invoke-virtual {v3, v4}, Lcom/htc/android/footprints/provider/FootprintManager;->getFootprintAll(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v2

    .line 180
    .local v2, list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    const/4 v0, 0x0

    .local v0, idx:I
    :goto_0
    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v3

    if-ge v0, v3, :cond_1

    .line 181
    invoke-virtual {v2, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v3

    check-cast v3, Lcom/htc/android/footprints/vo/Footprint;

    iget-object v3, v3, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    iget-object v4, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mFootprint:Lcom/htc/android/footprints/vo/Footprint;

    iget-object v4, v4, Lcom/htc/android/footprints/vo/Footprint;->mName:Ljava/lang/String;

    invoke-virtual {v3, v4}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 182
    move v1, v0

    .line 186
    :cond_1
    invoke-static {v1}, Lcom/htc/android/footprints/utils/FootprintUtils;->saveFootprintIndex(I)V

    .line 188
    .end local v0           #idx:I
    .end local v2           #list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    :cond_2
    return-void

    .line 180
    .restart local v0       #idx:I
    .restart local v2       #list:Ljava/util/ArrayList;,"Ljava/util/ArrayList<Lcom/htc/android/footprints/vo/Footprint;>;"
    :cond_3
    add-int/lit8 v0, v0, 0x1

    goto :goto_0
.end method

.method protected onResume()V
    .locals 7

    .prologue
    const-string v6, "DetailViewActivity"

    .line 140
    const-string v1, "DetailViewActivity"

    const-string v1, "onResume"

    invoke-static {v6, v1}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 142
    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->isLanuchByWidget:Z

    if-nez v1, :cond_0

    .line 143
    invoke-static {}, Lcom/htc/android/footprints/utils/FootprintUtils;->isResetByWidget()Z

    move-result v1

    if-eqz v1, :cond_0

    .line 144
    new-instance v0, Landroid/content/Intent;

    const-class v1, Lcom/htc/android/footprints/activity/ListModeNewActivity;

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 145
    .local v0, intent:Landroid/content/Intent;
    const/high16 v1, 0x400

    invoke-virtual {v0, v1}, Landroid/content/Intent;->setFlags(I)Landroid/content/Intent;

    .line 146
    invoke-virtual {p0, v0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->startActivity(Landroid/content/Intent;)V

    .line 147
    invoke-virtual {p0}, Lcom/htc/android/footprints/activity/DetailViewActivity;->finish()V

    .line 151
    .end local v0           #intent:Landroid/content/Intent;
    :cond_0
    invoke-super {p0}, Lcom/google/android/maps/MapActivity;->onResume()V

    .line 153
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    if-eqz v1, :cond_1

    .line 154
    iget-object v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->mStorageUtil:Lcom/htc/android/footprints/utils/StorageUtil;

    invoke-virtual {v1}, Lcom/htc/android/footprints/utils/StorageUtil;->startStorageUtil()V

    .line 157
    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v1

    iput-wide v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TE:J

    .line 158
    const-string v1, "DetailViewActivity"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "TE = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TE:J

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v6, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 159
    const-string v1, "DetailViewActivity"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "TE-TS = "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-wide v2, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TE:J

    iget-wide v4, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->TS:J

    sub-long/2addr v2, v4

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v6, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 161
    iget-boolean v1, p0, Lcom/htc/android/footprints/activity/DetailViewActivity;->USE_TRACEVIEW:Z

    if-eqz v1, :cond_2

    .line 162
    invoke-static {}, Landroid/os/Debug;->stopMethodTracing()V

    .line 164
    :cond_2
    return-void
.end method
